package com.vis.mybatisflex.domain.db;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@Setter
@Getter
public class ZBEntity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    //    @Id(keyType = KeyType.Generator, value = "SnowflakeKey")
    @Id(keyType = KeyType.None)
    private String id;

    //     * 操作人账号
    private String ci;

    //     * 修改人账号
    private String ui;

    //     * 数据创建时间，默认为NULL
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ct;

    //     * 数据修改时间，默认为NULL
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime ut;

    //     * 数据状态，0=可用，1=已删除，默认为0
    private String del;

}
